#include <iostream>
#include <string>
using namespace std;

class Solution 
{
public:
    int scoreOfString(string s)
    {
        int ret = 0;
        for (int i = 1; i < s.size(); i++)
            ret += abs((int)s[i - 1] - (int)s[i]);
        
        return ret;
    }
};

void Test01()
{

}

int main()
{
	Test01();
	return 0;
}